﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="LoginUserControl.ascx.cs"
    Inherits="TestPages.UserControls.LoginUserControl" %>
<fieldset class="userControl">
    <legend>UserControl</legend>
    <div class="rowOfUserControl">
        <asp:TextBox ID="TbxUserName" runat="server"></asp:TextBox>
        <asp:RequiredFieldValidator ID="RequiredFieldValidatortbxUserControl" Text="*" runat="server"
            ValidationGroup="UserControl" ErrorMessage="Empty field of userControl" ForeColor="red"
            ControlToValidate="TbxUserName"></asp:RequiredFieldValidator>
        <label for="TbxUserName">User Name</label>
    </div>
    <div class="rowOfUserControl">
        <asp:TextBox ID="TbxPassword" runat="server" TextMode="Password"></asp:TextBox>
        <asp:RequiredFieldValidator ID="RequiredFieldValidatortbxPassword" Text="*" ForeColor="red"
            runat="server" ValidationGroup="UserControl" ErrorMessage="Empty field of password"
            ControlToValidate="TbxPassword"></asp:RequiredFieldValidator>
        <label for="TbxPassword">Password</label>
    </div>
    <div class="rowOfUserControl">
        <asp:ValidationSummary ID="UserControlValidationSummary" ValidationGroup="UserControl"
            ShowMessageBox="true" ShowSummary="false" runat="server" DisplayMode="BulletList" />
        <asp:Button ID="BtnSubmit" runat="server" OnClick="BtnSubmit_Click" Text="Submit"
            CssClass="submitOfUserControl" OnClientClick="return submitOfServerControlClicked(event);"
            ValidationGroup="UserControl" />
    </div>
</fieldset>
